﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CJJ_BlogApiV3.Model.ResponseModel
{
    /// <summary>
    /// 评论
    /// </summary>
    public class CommentResponse : CommentView
    {
        /// <summary>
        ///回复
        /// </summary>
        public List<CommentView> Replys { get; set; }
    }

    public class CommentView
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int KID { get; set; }
        /// <summary>
        /// 会话id
        /// </summary>
        public string Commentid { get; set; }
        /// <summary>
        /// 博客num
        /// </summary>
        public string BlogNum { get; set; }
        /// <summary>
        /// 会员id
        /// </summary>
        public int Memberid { get; set; }
        /// <summary>
        /// 会员名称
        /// </summary>
        public string MemberName { get; set; }
        /// <summary>
        /// 评论谁的id  为空指的是自己写的新评论  不为空则是 评论别人的评论
        /// </summary>
        public int ToMemberId { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string Avatar { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }

    public class PrenexView
    {
        public PrenexViewItem PreBlog { get; set; }
        public PrenexViewItem NextBlog { get; set; }
    }
    /// <summary>
    /// 上下篇
    /// </summary>
    public class PrenexViewItem
    {
        /// <summary>
        /// 编号
        /// </summary>
        public string BlogNum { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string BlogTitle { get; set; }
    }
}
